package com.nny.wlw;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        int money=100;
        System.out.println("你的消费的余额是"+money);
        System.out.println("请选择支付方式：1.微信 2.支付宝");
        Scanner scanner=new Scanner(System.in);
        scanner.nextInt();
        int i= scanner.nextInt();
        switch (i){

               case 1:
                Pay wxPay =new WxPay();
                wxPay.pay(money);
                break;
                case 2:
                    System.out.println("扣款是支付宝：");
                    break;
        }
        }
    }
